package com.wyh.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wyh
 * @version 1.0
 * @date 2021/11/16 16:08
 */

@Configuration
public class MyselfRule {

    @Bean
    public IRule getIRule(){
        return new RandomRule();
    }
}
